﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace MyServer.Todo.Infrastructure.Migrations
{
    public partial class init_2 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "todo_id",
                table: "todo_settings",
                type: "character varying(36)",
                nullable: false,
                defaultValue: "",
                oldClrType: typeof(string),
                oldType: "character varying(36)",
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "todo_group_id",
                table: "todo_group_settings",
                type: "character varying(36)",
                nullable: false,
                defaultValue: "",
                oldClrType: typeof(string),
                oldType: "character varying(36)",
                oldNullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "todo_id",
                table: "todo_settings",
                type: "character varying(36)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "character varying(36)");

            migrationBuilder.AlterColumn<string>(
                name: "todo_group_id",
                table: "todo_group_settings",
                type: "character varying(36)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "character varying(36)");
        }
    }
}
